import React, { PureComponent } from 'react'
import { Redirect, Route, Switch } from 'react-router-dom';
import MyNavLink from "../../Common/MyNavLink/index";
import Film from '../Film/Film';
import Good from '../Good/Good';
import HotExplan from '../HotExplan/HotExplan';
import Predicet from '../Predicet/Predicet';
import Series from '../Series/Series';
import VideoList from '../VideoList/VideoList';
export default class Tag extends PureComponent {
    render() {
        return (
            <>
                <div className="to">
                    <ul>
                        <li>
                            <MyNavLink to='/app/video/commend'>推荐</MyNavLink>
                        </li>
                        <li>
                            <MyNavLink to='/app/video/hotExplan'>热片解读</MyNavLink>
                        </li>
                        <li>
                            <MyNavLink to='/app/video/predicet'>预告片</MyNavLink>
                        </li>
                        <li>
                            <MyNavLink to='/app/video/film'>说电影</MyNavLink>
                        </li>
                        <li>
                            <MyNavLink to='/app/video/good'>佳片</MyNavLink>
                        </li>
                        <li>
                            <MyNavLink to='/app/video/series'>剧综</MyNavLink>
                        </li>
                    </ul>
                </div>
                <Switch>
                    <Route path='/app/video' exact render={
                        () => {
                            <Redirect to='/app/video/commend' />
                        }
                    } />
                    <Route path='/app/video/commend' component={VideoList} />
                    <Route path='/app/video/hotExplan' component={HotExplan} />
                    <Route path='/app/video/predicet' component={Predicet} />
                    <Route path='/app/video/film' component={Film} />
                    <Route path='/app/video/good' component={Good} />
                    <Route path='/app/video/series' component={Series} />
                </Switch>
            </>
        )
    }
}
